﻿using Server.Attributes;
using Server.Message;
using Server.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server
{
    [System]
    class SettingSystem
    {
        public const string NetSet = "Net";

        void Init()
        {

        }

        void Start()
        {
            MySystem.GetSystem<MsgSystem>().Send(Msg.GetRegMsg(MsgType.SettingRequire, RequireSetting));
        }


        void RequireSetting(object obj)
        {
            switch((string)obj)
            {
                case NetSet:
                    MySystem.GetSystem<MsgSystem>().Send(Msg.GetMsg(MsgType.SettingResponse, NetSetting.Default));
                    break;
            }
            
        }
    }
}
